package com.jms.framework.listener;

public class Order implements Comparable<Order>{
    private int orderValue;

    public Order(int value) {
        this.orderValue = value;
    }

    public int getOrderValue() {
        return orderValue;
    }

    public void setOrderValue(int value) {
        this.orderValue = value;
    }

    @Override
    public int compareTo(Order o) {
        return orderValue - o.getOrderValue();
    }
}
